/**
 * 
 */
package sailing.managers.impl;

import cjlite.annotations.Inject;
import sailing.dao.CashAccountDao;
import sailing.entity.CashAccount;
import sailing.managers.CashAccountManager;

/**
 * @author kevin
 * 
 */
public class CashAccountManagerImpl implements CashAccountManager {

	@Inject
	private CashAccountDao caDao;

	/*
	 * (non-Javadoc)
	 * 
	 * @see sailing.managers.CashAccountManager#save(sailing.entity.CashAccount)
	 */
	@Override
	public boolean save(CashAccount ca) {
		return caDao.save(ca);
	}

	@Override
	public CashAccount getCashAccount() {
		return caDao.getLatestCashAccount();
	}

}
